<?php  
include("../../config/config.php");

if($_POST["button"] == "Insert")  

{
	$nip = $_POST['nip'];
	$nama = $_POST['nama'];
	$password = $_POST['password'];
	$team = $_POST['team'];
	$departemen = $_POST['departemen'];
	$status = $_POST['status'];
	$atasan = $_POST['atasan'];
	$role = $_POST['role'];
	
	
		$sql = "INSERT INTO biodata(NIP,NAMA, BIO_NIP, PASSWORD_PEGAWAI, ID_TEAM, ID_DEPARTEMEN, ID_ROLE, ID_STATUS)
		VALUES ('$nip','$nama', '$atasan', '$password', '$team', '$departemen', '$role','$status')";
		$result = mysql_query($sql) or die(mysql_error());;
		mysql_close();
		header('Location: /mpd/ad/view/tambahpegawai.php');
}
?>
